<%-- 
    Created on : 30-sep-2013, 1:10:04
    Author     : Alan Gonzalez
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<jsp:include page = "../metadatosPopUp.jsp" flush = "True" />
<html>
    <head>
        <title>Bienvenido al Sistema ERP MAGR | Nuevo Usuario</title>
    </head>
    <body>
        <div class="wrapper">
            <main class="content">
                <form class="formee" method="post" action="./Users?action=requestData">
                    <fieldset>
                        <legend>Nuevo Partner </legend>
                    <!-- style="height:400px;width:600px" -->
                    <!-- LISTA DE ERRORES -->
                    <c:if test="${principalSistema.nErrores>0}">
                        <div class="formee-msg-error">
                            <h3>Incidencias:</h3>
                            <ul>
                                <c:forEach items="${principalSistema.errores}" var="e">
                                    <li><c:out value="${e}"/></li>
                                    </c:forEach>
                            </ul>
                        </div> 
                    </c:if>
                    <!-- LISTA DE ADVERTENCIAS-->
                    <c:if test="${principalSistema.nAdvertencias > 0}">
                        <div class="formee-msg-warning">
                            <h3>Incidencias:</h3>
                            <ul>
                                <c:forEach items="${principalSistema.vAdvertencias}" var="w">
                                    <li><c:out value="${w}"/></li>
                                    </c:forEach>
                            </ul>
                        </div> 
                    </c:if>

                    <div class="grid-6-12">
                        <label>Nombre Usuario<em class="formee-req">*</em></label>
                        <input type="text" name="user" onKeyup="this.value = txtalfanum(this.value)"/>
                    </div>
                    <div class="grid-6-12">
                        <label>Email<em class="formee-req">*</em></label>
                        <input type="text" name="emailUser" onKeyup="this.value = txtalfanum(this.value)"/>
                    </div>
                    <div class="grid-12-12">
                        <label>Password<em class="formee-req">*</em></label>
                        <input type="password" name="pass" onKeyup="this.value = txtalfanum(this.value)"/>
                    </div>
                    <div class="grid-12-12">
                        <label>Repetir Password<em class="formee-req">*</em></label>
                        <input type="password"  name="passAgain" onKeyup="this.value = txtalfanum(this.value)"/>
                    </div>
                    <div class="grid-12-12">
                        <input type="submit" value="Enviar" onclick="popup('./TarrySystem?action=nuevoPedido&index=1', 800, 500);"/>
                    </div>
                    </fieldset>
                </form>
            </main>
        </div>
    </body>
</html>
